home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Languages / Masm V6.11 / SAMPLES / NTSAMPLE / NTSAMPLE.TX$ / NTSAMPLE.bin
Encoding:
Text File  |  1993-09-29  |  4.1 KB  |  88 lines

  1.               Notes on MASM 6.11 for Windows NT Sample Programs 
  2.                      (c) Copyright Microsoft Corp. 1993
  3.  
  4. Notes:     - If you installed the samples during MASM 6.11 setup, you will 
  5.              have samples for MS-DOS, Microsoft Windows, and Microsoft 
  6.              Windows NT on your system. However, you need to install MASM 
  7.              6.11 for the appropriate operating system(s) in order to run 
  8.              each sample.
  9.  
  10.            - All of the following examples require MASM 6.11 in order to 
  11.              assemble. Linking the resulting .obj files to create 
  12.              executable files requires a 32-bit linker. 
  13.  
  14.            - The make files in the following samples call a 32-bit linker 
  15.              named LINK.EXE. The name of the linker included in the Windows 
  16.              NT software development kit is LINK32.EXE. If your only 32-bit
  17.              linker is LINK32.EXE, an error will occur because no linker can 
  18.              be found or because a 16-bit linker is on the path.
  19.  
  20.            - The example makefiles use names and switches that are specific 
  21.              to Microsoft Visual C++, 32-bit edition. If you are using 
  22.              the Windows NT Software Development Kit (SKD) to build the 
  23.              samples, you must add "TOOLS=SDK" to the NMAKE command line; 
  24.              for example:
  25.                
  26.              nmake TOOLS=SDK /a /f casmdll.mak
  27.  
  28. =============================================================================
  29.  
  30. Directory: NTSAMPLE\NTDLL
  31.  
  32. Contents:  This sample demonstrates how to create a mixed-language (MASM
  33.            and Microsoft C) dynamic-link library for Windows NT.
  34.  
  35. Note:      Requires Microsoft Visual C++, 32-bit edition, or the Windows NT 
  36.            SDK to build the sample.
  37.  
  38. -----------------------------------------------------------------------------
  39. Directory: NTSAMPLE\HELLO
  40.  
  41. Contents:  The sample is a "Hello, world" application developed in assembly 
  42.            language to use the 32-bit flat memory model of Windows NT.
  43.  
  44.            The supplied sample code and makefile perform the following 
  45.            three steps, assembling a 32-bit flat-memory-model application 
  46.            for the Windows NT environment. 
  47.  
  48.            1. Places the .386 or .486 directive in the code prior to the 
  49.               .MODEL flat, stdcall directive to ensure that the code and 
  50.               data segments are correctly initialized for a 32-bit flat- 
  51.               memory-model application.
  52.  
  53.            2. Assembles the source code using the following command:
  54.  
  55.                 ML /c /coff hello.asm
  56.  
  57.            3. Uses the LINK utility provided with the Windows NT SDK or 
  58.               Visual C++ for NT to link the object modules. 
  59.  
  60. Note:     In the MASM code, do not use the INCLUDELIB directive and do not 
  61.           place the starting label after the END directive. The LINK utility 
  62.           provided with the Windows NT SDK ignores the default library names 
  63.           in object files and requires the -entry switch on the linker 
  64.           command line to specify the starting address.
  65.  
  66. -----------------------------------------------------------------------------
  67. Directory: SAMPLES\NTSAMPLE\SZSEARCH
  68.  
  69. Contents:  This sample demonstrates how to program for Windows NT. The 
  70.            sample includes a routine that searches for a substring 
  71.            within a buffer, using a variation of the Boyer-Moore method.
  72.  
  73. Note:      Requires Microsoft Visual C++, 32-bit edition, or the Windows NT 
  74.            SDK to build the sample.
  75.  
  76. -----------------------------------------------------------------------------
  77. Directory: NTSAMPLE\THREADS
  78.  
  79. Contents:  In this sample, two threads are created: one from a C procedure, 
  80.            the other from an assembly-language procedure. The first draws a 
  81.            green box, the second a red box. Both boxes are moved about the 
  82.            screen as their individual threads calculate a new position and 
  83.            redraw the box.
  84.  
  85. Note:      Requires Microsoft Visual C++, 32-bit edition, or the Windows NT 
  86.            SDK to build the sample.
  87.  
  88.